package com.duo.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class OrderPaymentVO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 订单id
     */
    @JsonSerialize(using= ToStringSerializer.class)
    private String id;

    /**
     * 订单号
     */
    @JsonSerialize(using= ToStringSerializer.class)
    private String number;

    /**
     * 取餐码
     */
    private Integer deliverCode;

    /**
     * 桌号id
     */
    @JsonSerialize(using= ToStringSerializer.class)
    private String tableId;

    /**
     * 下单用户id
     */
    @JsonSerialize(using= ToStringSerializer.class)
    private String userId;

    /**
     * 订单状态 0待付款 1已付款 3已完成 4已取消
     */
    private Integer status;

    /**
     * 支付方式 0微信 1支付宝
     */
    private Integer payMethod;

    /**
     * 实收金额
     */
    private BigDecimal amount;

    /**
     * 打包费
     */
    private Integer packageAmount;

    /**
     * 备注
     */
    private String remark;

    /**
     * 下单时间
     */
    private LocalDateTime orderTime;

}
